<?php
class Report_Form_LocationContain extends ZendX_JQuery_Form
{
	public function __construct(Zend_Controller_Action $controller)
	{		
		//warehouse_code
		$warehouse_code=$this->createElement ( 'select', 'warehouse_code' )
		->setLabel("Kho")
		;
		
		//inventory_location_code
		$location_code=$this->createElement ( 'select', 'location_code' )
		->setLabel("Vị trí kho")
		->setDescription ( 
		"<br/><br/>"
		.$controller->view->partial("index/manage/submit.phtml",'admin',array('value'=>'Tìm kiếm thông tin','onclick'=>"$('#adminForm').submit();")))		
		;
		
		//unit_code
		$unit_code=$this->createElement ( 'select', 'unit_code' )
		->setLabel ( "Đơn vị qui đổi của BC")
		->setRequired(true)
		;
		
		$this->addElements ( array (
			$warehouse_code,
			$location_code,
			$unit_code
		) );	
		
		$controller->getHelper ( 'common' )->form ( $this );
	}
}